1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 package net.sf.jmimemagic;
24
25 /***
26 * JMimeMagic unsupported test type exception. This exception is thrown when an unsupported
27 * test type is specified in a mime magic test
28 *
29 * @author $Author: arimus $
30 * @version $Revision: 1.1 $
31 */
32 public class UnsupportedTypeException extends Exception
33 {
34 /***
35 * Default constructor
36 */
37 public UnsupportedTypeException()
38 {
39 super();
40 }
41
42 /***
43 * Create exception with error message
44 *
45 * @param message The error message for this exception
46 */
47 public UnsupportedTypeException(String message)
48 {
49 super(message);
50 }
51
52 /***
53 * Create exception based on an existing Throwable
54 *
55 * @param cause The throwable on which we'll base this exception
56 */
57 public UnsupportedTypeException(Throwable cause)
58 {
59 super(cause);
60 }
61
62 /***
63 * Create an exception with custom message and throwable info
64 *
65 * @param message The message
66 * @param cause The target Throwable
67 */
68 public UnsupportedTypeException(String message, Throwable cause)
69 {
70 super(message, cause);
71 }
72 }